package org.javad.pdf.fonts;

import com.itextpdf.text.Font;

public enum PdfFontDefinition {

	Title,
	Subtitle,
	Classifier,
	SetIssue,
	CompositeSetDescription,
	SetDescription,
	SetDescriptionSecondary,
	SetComment,
	RowDescription,
	Stampbox,
	StampboxOther;
	
	
	public String getDefaultTypeFace() {
		String typeFace = null;
		switch(this) {
		case Title: case Subtitle: 
			typeFace = "CastleTLig";
			break;
		case StampboxOther: case RowDescription: case CompositeSetDescription: case SetComment: case SetDescriptionSecondary:
			typeFace = "Verdana";
			break;
		default:
			typeFace = "Verdana";
		}
		return typeFace;
	}
	
	@SuppressWarnings("incomplete-switch")
	public int getDefaultStyle() {
		int style = Font.NORMAL;
		switch(this) {
		case StampboxOther: case RowDescription: case CompositeSetDescription: case SetComment: case SetDescriptionSecondary:
			style = Font.ITALIC;
			break;
		}
		return style;
	}
	
	@SuppressWarnings("incomplete-switch")
	public float getDefaultSize() {
		float size = 4.5f;
		switch(this) {
		case Title:
			size = 24.0f;
			break;
		case Subtitle:
			size = 12.0f;
			break;
		case Classifier:
			size = 7.5f;
			break;
		case SetIssue:
			size = 6.5f;
			break;
		}
		return size;
	}
	
}
